<template>
  <div class="btnBox-btn">
    <el-button
      v-for="(item, index) in btnList"
      :key="index"
      class="pms-zr-button-primary"
      size="small"
      @click="handleBtn(item.method)"
    >
      {{ item.button }}
    </el-button>
  </div>
</template>

<script>
export default {
  name: 'TPageBtn',
  props: {
    btnList: {
      type: Array,
      default: () => []
    }
  },
  methods: {
    // 保存
    handleBtn(methodName) {
      this.$emit('handleBtn', methodName)
    }
  }
}
</script>

<style scoped lang="scss">
.btnBox-btn {
  width: 100%;
  text-align: center;
  border: 1px solid #ebeef5;
  padding: 10px 0;
}
::v-deep .pms-button-primary {
  color: #fff;
}
</style>
